package com.burgeon.backend.service;

import com.burgeon.backend.entity.Wechat;
import com.burgeon.backend.service.ex.ErrorDataException;
import com.burgeon.backend.service.ex.UserNotFoundException;
import javax.servlet.http.HttpSession;
import java.util.Map;

public interface WechatService {

    String H5Opneid(String code,String token);

    void UpDataWechat(Wechat wechat) throws ErrorDataException;

    Wechat GetWechatByAccount(String account);

    String GetAccesTokenByAccount(String account);

    Wechat getInfo(String token) throws ErrorDataException;

    void Judge(String code, String token, HttpSession session) throws UserNotFoundException;

    void JudgeByPhone(String token,String phone, HttpSession session) throws UserNotFoundException;

    String GetAccesToken(String token);

    String GetJsapiTicket(String accessToken, String token);

    Map GetSDKSign(String url, String token);


    String findAppId(String token);
}
